package com.migu.spms.dao.inf;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.migu.spms.dao.entity.RequireAttachmentCriteria;
import com.migu.spms.dao.entity.RequireAttachmentDO;

@Repository(value = "IRequireAttachmentDO")
public interface IRequireAttachmentDO {
    int deleteByPrimaryKey(Long id);

    int insert(RequireAttachmentCriteria record);

    int insertSelective(RequireAttachmentCriteria record);

    RequireAttachmentDO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(RequireAttachmentCriteria record);

    int updateByPrimaryKey(RequireAttachmentCriteria record);

    void batchInsert(List<RequireAttachmentCriteria> attachments);
    
    /**
    * 查询附件列表
    * @param record
    * @return
    * @exception
    * @throws
    */
    List<RequireAttachmentDO> selectRequireAttachment(RequireAttachmentCriteria record);

    List<RequireAttachmentDO> selectByCriteria(RequireAttachmentCriteria requireAttachmentCriteria);
}